<template>
  <router-view />
</template>

<script setup lang="ts">
import { useSettingStore } from "./store/setting";

async function settingTheme() {
  const theme = useSettingStore().setting?.theme;
  document.documentElement.setAttribute("class", `${theme}`);
}

onMounted(async () => {
  await settingTheme();
});
</script>

<style scoped></style>
